package com.jyserver.common.tools;
import java.io.IOException;

public class exe {
    public static void main(final String[] args) throws IOException {
//        Process.docmd("D:\\\\work\\\\developer\\\\postgresql10\\\\bin\\\\pg_ctl -D start" );



//        -D "../data"
//        String[] cmd = {"D:\\\\work\\\\developer\\\\postgresql10\\\\bin\\\\pg_ctl.exe","-D", "D:\\\\work\\\\developer\\\\postgresql10\\\\data","start"};

        String[] cmd = {"D:\\\\work\\\\developer\\\\postgresql10\\\\bin\\\\pg_ctl.exe","-D", "D:\\\\work\\\\developer\\\\postgresql10\\\\data","start"};
//        create database [数据库名];
        Process.docmd(cmd);

//        Runtime.getRuntime().exec(cmd);
    }
}
